package com.vue.vue.enums;

import lombok.Getter;

@Getter
public enum ResponseEnum {

    ERROR(-1,"服务端错误"),
    PARAMS_ERROR(3,"参数错误"),
    SUCCESS(0,"成功"),
    PASSWORD_ERROR(1,"密码错误"),
    USERNAME_EXIST(2,"用户已存在"),
    EMAIL_EXIST(4,"邮箱已经存在"),
    NEED_LOGIN(10,"用户未登录，请先登录"),
    USERNAME_OR_PASSWORD_ERROR(11,"用户名或密码错误"),
    PRODUCT_OFF_OR_DELETE(12,"商品下架或者删除"),
    PEODUCT_NOT_EXIST(13,"商品不存在"),
    PRODUCT_STOCK_ERROR(14,"库存有误"),
    CART_PEODUCT_NOT_EXIST(15,"购物车商品不存在"),
    DELETE_SHIPPING_FILED(16, "删除收货地址失败"),
    SHIPPING_NOT_EXIST(17, "地址不存在"),
    CART_SELETED_IS_EMPTY(18, "请选择商品后下单"),
    ;

    Integer code;

    String desc;



    ResponseEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
